/*
* @author Iceshadows
* */
package com.house.util;

import org.mindrot.jbcrypt.BCrypt;
public class CryptUtillBcryptimpl implements CryptUtil{
    @Override
    public String encrypt(String origin) {
        String hashed = BCrypt.hashpw(origin, BCrypt.gensalt(12));
        return hashed;
    }

    @Override
    public String decrypt(String password) {
        return null;
    }

    @Override
    public Boolean check(String plain, String password) {
        return BCrypt.checkpw(plain, password);
    }
}
